package vip.xiaonuo.biz.modular.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import vip.xiaonuo.biz.modular.dashboard.param.WeekViewId;
import vip.xiaonuo.biz.modular.dashboard.result.SalesTrend;
import vip.xiaonuo.biz.modular.order.entity.BizOrder;
import vip.xiaonuo.biz.modular.order.param.BizTicketOrderPageParam;
import vip.xiaonuo.biz.modular.order.param.BizTicketReservationQueryParam;
import vip.xiaonuo.biz.modular.order.result.BizTicketReservationResult;

import java.util.List;
import java.util.Map;

/**
 * 门票订单表Mapper接口
 *
 * @author gtc
 * 
 **/
@Mapper
public interface BizTicketOrderMapper extends BaseMapper<BizOrder> {
    List<SalesTrend> weekview(String id);

    Page<BizOrder> spotImagepage(Page<BizOrder> bizOrderPage, BizTicketOrderPageParam bizTicketOrderPageParam);

    List<Map<String, Object>> groupOrderStat(String id);

    /**
     * 查询旅行社门票预约情况
     *
     * @param page 分页参数
     * @param orgId 旅行社组织ID
     * @param param 查询参数
     * @return 预约信息分页结果
     */
    Page<BizTicketReservationResult> queryTravelAgencyTicketReservations(
            @Param("page") Page<BizTicketReservationResult> page,
            @Param("orgId") String orgId,
            @Param("param") BizTicketReservationQueryParam param);
}
